﻿using CampDay14__LINQ_and_MVC_.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CampDay14__LINQ_and_MVC_.Controllers
{
    public class HomeController : Controller
    {
        //Index Action
        public ActionResult Index()
        {
            return View();
        }

        //About Action
        public ActionResult About()
        {
            Person me = new Person()
            {
                Age = 22,
                Name = "Jeremy",
                City = "Oakland",
                State = "California"
            };
            return View(me);
        }

        //Contact Action
        public ActionResult Contact()
        {
            return View();
        }

        public ActionResult Test()
        {
            List<int> numbers = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 19, 30, 40, 99, 117, 18, 6, 9, 5, 12, 25, 38, 49, 98765 };
            return View(numbers);
        }
    }
}